﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Models
{
    static public class CompareDmFile
    {
        static public DataTable FileList(DataModel conn,string tableName)
        { 
            DataTable tb = new DataTable();
            string query = @"select * from " + tableName;
            try
            {
                tb = conn.QueryResults(query).Tables[0];
            }
            catch
            {
                return new DataTable();
            }
            return tb;
        }
    }
}
